package com.tiancan.design.gateway.service;

import com.tiancan.design.gateway.bean.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/** @author tiancan */
@FeignClient(
    value = "login-service-user",
    fallbackFactory = TokenServiceFeignFallBackFactory.class,
    path = "/user")
public interface TokenServiceFeignClient {
  @GetMapping("/info/{token}")
  public Result<String> info(@PathVariable("token") String token);
}
